package actions;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
 * Contains methods useful for document file I/O
 * @author Brittin
 *
 */
public class ActionFileIO {
	public static void saveFile(File file, String text) throws IOException {
			// Write the old file
			FileWriter fw = null;
			fw = new FileWriter( file );
			fw.write( text );
			if ( fw != null )
				fw.close();
	}
}
